package net.neptech.model.emum;



public enum ClincStafStatus {
    NORMAL(0,"正常"),
    STOP(1,"停诊");
    private final String value;
    private final Integer type;

    ClincStafStatus(Integer type, String value) {
        this.value = value;
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public Integer getType() {
        return type;
    }


    public static ClincStafStatus getByType(Integer type) {
        for (ClincStafStatus clincStafStatus : ClincStafStatus.values()) {
            if (clincStafStatus.getType().equals(type)) {
                return clincStafStatus;
            }
        }
        return null;
    }
}
